fixes install bug 

fixes fatal: Could not change back to '/root': Permission denied