Remove usage of realpath and getRealPath.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Merge pull request #1629 from jasonlewis/remove-realpath

Remove usage of realpath and getRealPath.