Fix bug and efficiency improvement in replaceAliasesWithGeneNames.py