[jmdb] Making bash_local work proper