Fixing the file and directory permissions into the environment