Correcting improper permissions and folder names