Build: Fix module sort order for PGXN installation
Build: Fix module sort order for PGXN installation

JIRA: MADLIB-1024

PGXN installation involves creating a single extension sql file that
contains all the SQL commands run during MADlib deployment. The modules
added into this extension file are to be placed in the right order,
taking dependencies into account.

MADlib has a function that compares a given file path with topologically
sorted modules to decide the order of concatenation to extension file.
This comparison is faulty since the module name is searched for in the
whole path, leading to false positive with modules that have another
module name as substring.  The specific bug was reported as 'svec_util'
being flagged in same order as 'svec'.

This commit fixes this issue taking advantage of the file path names being
of the form '.../modules/<module_name>/...', hence comparing the
whole module name.

Closes #106

apache/incubator-madlib,madlib/madlib,orhankislal/madlib,hpandeycodeit/incubator-madlib,apache/incubator-madlib,rvs/incubator-madlib,apache/incubator-madlib,iyerr3/incubator-madlib,orhankislal/incubator-madlib,rvs/incubator-madlib,orhankislal/madlib,madlib/madlib,rashmi815/incubator-madlib,hpandeycodeit/incubator-madlib,cooper-sloan/incubator-madlib,rvs/incubator-madlib,rashmi815/incubator-madlib,rashmi815/incubator-madlib,njayaram2/madlib,cooper-sloan/incubator-madlib,iyerr3/incubator-madlib,apache/incubator-madlib,rvs/incubator-madlib,apache/incubator-madlib,orhankislal/incubator-madlib,rvs/incubator-madlib,njayaram2/madlib,hpandeycodeit/incubator-madlib,orhankislal/incubator-madlib,njayaram2/madlib,rashmi815/incubator-madlib,hpandeycodeit/incubator-madlib,njayaram2/incubator-madlib,madlib/madlib,njayaram2/incubator-madlib,njayaram2/madlib,njayaram2/incubator-madlib,iyerr3/incubator-madlib,orhankislal/madlib,cooper-sloan/incubator-madlib,orhankislal/incubator-madlib,hpandeycodeit/incubator-madlib,njayaram2/incubator-madlib,cooper-sloan/incubator-madlib,cooper-sloan/incubator-madlib,madlib/madlib,orhankislal/madlib,iyerr3/incubator-madlib,orhankislal/madlib,orhankislal/incubator-madlib,madlib/madlib,njayaram2/incubator-madlib,iyerr3/incubator-madlib,rashmi815/incubator-madlib,njayaram2/madlib