Added: checking if directory in the path (and file, if relevant) exists. Fixed: added quote around vars where was missing, date in eu-chain.sh.