File and file permissions clean up