use BASE_DIR when available and add deprecation warning for our auto detection of project root