Fix #387, Pattern match failure in GhcPkg