Fixed pre_build permissions