Do not use os realpath for non-symlink files.

The python realpath will change the path to an absolute path if any
of the directories of the path is a simlink.  This results in not finding
these files in the user local directory and failing the test_modutil.
Merge pull request #415 from pooya/shayan/freebsd

Do not use os realpath for non-symlink files.