Added ability to walk up directories to find the q module