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

files