bugfix: wrong permission bits to mkdir