Fix double deploy folder, Speed up minihttp client

Check if "from" is a folder when actually using it, not when creating
the task. It could happen that "from" did not exist yet, which woudl
cause the folder not to merge.