make build_bins script friendlier to run standalone