remove shellscript helper
only look for config file in home directory
remove local cfgfile
improve error messages when configfile is missing
capture file mode in variable
put proper mode in constant