Improve upload, catch errors, introduce copyTargetDir
Merge pull request #7 from tomaszdurka/issue-7

Improve upload, catch errors, introduce copyTargetDir