Cleanup install/remove methods.
Cleanup install/remove methods.

- Remove malloc and copy of a constant string.
- Use NSFileManager instead of stat().
- Properly unset some variables. 


MaddTheSane/perian,MaddTheSane/perian,MaddTheSane/perian,MaddTheSane/perian,MaddTheSane/perian,MaddTheSane/perian