Removing usage of 'realpath' from run_test

It's not portable to other systems because it's Debian specific.