Fixes for issue #535.

Fixes issue #535.

The problem is that if your PYTHONPATH includes folders that are partly made up of symlinks, the __file__ of a module will be different depending on whether the module is loaded from the PYTHONPATH or discovered by the nose.importer.