Work around the absense of 'realpath' on some systems.