Added "use Cwd", modified built in template
Revised generation of query from command line args
Removed attachment_name from response, added DEFAULT_MAIL_TEMPLATE
Change base_dir to base_directory
Set base_directory to current directory if not otherwise set