now checking existing of dirs in a loop, necessary when a whole tree is
uploaded (with sub dirs) and the client does not send mkdir commands,
creating dirs in createOutputStream(), see github issue #4