fix irods init in unittests

do not write to a file if opening it failed.
this will lead to test failures, but doesn't hang at startup