#311 Make sure that PROJECT_SOURCE_DIR is always set before used in basis_project_metadata_check.