implemented `die` function in bash-template

This pull request is related to #259 (`die` command not found in bash script)

(thanks to https://github.com/sbt/sbt-native-packager/issues/259#issuecomment-45880827)