Allow command-line specification of BASE_DIR