Added ability to use with statement for irods file objects