Changing logic for BIN_DIR since it appears to fail on Ubuntu