add possibility to chmod and chgrp the created directories and files