make sure that a build is selected before running the command