slim: envsetup: update the remote functions

general cleanups, better git detection

Change-Id: Ib2567c1c863661e716569fad4bbbb47f94d40311
1 file changed