Fix BASE_DIR after settings have been moved