cleaning up
provide target directory as commandline parameter
remove sed error (caused by obsolete download template action)