use regexp for removing the script extension, also remove it from .pl
files
Merge pull request #124 from stdweird/master

use regexp for removing the script extension, also remove it from .pl