Currently arc requires bash for $BASH_SOURCE[0] and
substring range removal, both of which are bash specific features.
This patch gets the same result with $0 and string prefix removal,
both of are are POSIX features and as such all shells should support.
Fixes T12477.