Added samefile function to base/exports.jl

This way the unit test for testing renaming of directories can call
samefile directly and not have to use Base.samefile.

Ref #4157