Fixed a bug in Folder where incorrect file permissions were set