fixes #11 where chmod did not seem to work on root directory