Update toggle_nousb.sh

Replaced BASE_DIR with a function.