another change to base_dir detection in settings