fixed exiting condition when trying to run build.