Fixed Permissions Issue In Build Script