add proper behavior on master branch and exit codes to get_binaries.py