Fixed bug where only first argument was being transmitted
Made arguments starting with - be skipped for realpath

I assume these are just commandline options, and should be passed as is;
note that this implementation is just minimal and may not fit every
usecase.

/cc @beorgler