Allow FileHandle like objects as well as plain old fh