changed root install hook to only execute once
fixed error with filepermissions after a rebuild
* code cosmetic