fixed exit code for build command