take advantage of util.isregular, remove some redundant code
take advantage of util.isregular, remove some redundant code

sassoftware/conary,sassoftware/conary,sassoftware/conary,sassoftware/conary,sassoftware/conary