added option for giving a filename to the completion script