Fixing bug when retrieving the target path of a symbolic link.
Adding string utility functions for substring find and replace.