Fix use of BASE_DIR