Fixed the hidden query bug

Caused by a silly error in settings.py (related to the STANDARD_DIRS variable being empty)