Moved the deletion of the builds directory to before anything is run.