Build - envsetup: Fix remote functions to deal with symlinks

Change-Id: I9114a178fd471af6dbf968f54479af83b39d7147
Signed-off-by: STELIX <ssspinni@gmail.com>