Fixed umask (for mkdir not successful in Linux), see stackoverflow 3997641. Unit test (Windows) successfull.