Fixing chmod issues on build