share: use BASH_SOURCE to reliably detect the script folder