Use /bin/sh where appropriate.
Useless use of ~