startstop: replace $BASH_SOURCE with a sh compatible variant