In cases where `aliases.yaml` was smylinked to some other place(dotfiles for example), it would remove the smylink and write to a new file. This commit fixes that by resolving the smylink before writing to the file. Issue #892