Bugfix: Copy argv[0] given to dirname() Per manpage, dirname can (and does on GNU/Linux!) modify its argument