use fork free "${BASH_SOURCE##*/}" instead of "$(basename "$BASH_SOURCE")"