take cwd into acount when looking up modules