changed control file regex to match whole file name, and moved regex definitions into it's own module