Update crosscompile.bash

My previous PR wasn't as good and functional as testing against `type`.
Merge pull request #11 from jeromenerf/patch-2

Update crosscompile.bash