Fixed path to typeahead if mg was not installed in root.