Fix pgalias bug where files have the same root but different extensions.