Set correct permissions to build