Improve git lookup by using which() to search PATH if git is not installed in emsdk.