Fix bug in settings.py related to BASE_DIR placement