Increase security by setting access rights to temp-dir