Fixed 'update-symlinks' to support nested links

This fix adds support for links like this
 '~/.rvm/hooks/my_hook -> rvm/my_hook'

Without this fix the created link will be incorect (relative to HOME_DIR):
 ~/.rvm/hooks/my_hook -> rel_to_home_path_to_dotfile_project/rvm/my_hook