Update crosscompile.bash

My previous PR wasn't as good and functional as testing against `type`.