Fix sniff path to support dojo1.7