Bugfix for invalid directory structure in copy/deploy targets