Don't work for local commands, need to use capture :( ... Reverting... "Small refactor in symlink path method and add some tests for it"

This reverts commit 366f2a8cb934dd2d1e02a19bb9b9c46ba4b05fa8.