Adding file permissions to build script