envsetup: Fix remote functions to deal with symlinks

Change-Id: I6f35dc30dda22149b2c37e1c6c7d41ea7239d3bb
Merge branch 'cm-10.2' of https://github.com/CyanogenMod/android_build into cm-10.2