Depend directly on bash instead of cheating.
Merge remote-tracking branch 'toksy/master'
Actually check for realpath instead of failing to.