Cleanup input stream when reading jar
Generate a remote copy destination path for #981
Merge branch 'issue/981-script-based-file-copy-destination' into development