Base filenames on chosen appname.