Fixed file permissions and removed OS X attributes