Remember there's a difference between process and processMask, but this code sometimes calls them both process.  getPkgInfo should be fixed to return the correct one that first matches based on a regex of processMask against process.  I.e. "myr*" matches "myroxie1" and "myroxie2".  Simply returning "*" if there is no "myroxie1" is not quite good enough.