Fix error when load environments from command-line.

e.g.
  $ source openrc
  dirname: invalid option -- 'b'
  Try 'dirname --help' for more information.