Fix test if "." not in search path
export route function in common

Without this change the function route_split_hostlist_treewidth()
in src common would not be available to the route plugins