trying to remove RMI 2.0.0 error,

from #which method:

'ArgumentError: fd 1 specified twice'

Also used Map#getopt rather than Map#get when overriding with default.