Mac Broken runscrumbleship.command

Version: 
Full
Type: 
Major Bug
Status: 
Confirmed

Whenever I run the default runscrumbleship.command it just runs and terminates session, but with my modified version it works perfectly, I have categorized this as a major bug because it prevents scrumbleship from running unless you start it from terminal:

#############################
#!/bin/sh
dir=${0%/*}
if [ "$dir" = "$0" ]; then
dir="."
fi
cd "$dir"
export DYLD_LIBRARY_PATH=./lib
./bin/scrumbleshipmac

#############################