Revert "Updated symlink resolve."

This reverts commit afb11d19679f068f3807ba225096c3a30e67840f.

It is complex to write a portable code which will resolve
symlinks cross Linux and OS X based systems. The code
would be copied to each script. Hence, it is better to write a
wrapper running the code.