add default value 1 for lvl in args_parent_name in bash version

Signed-off-by: Mattias Andrée <maandree@operamail.com>
m + bash bug fixes + add test for bash version

Signed-off-by: Mattias Andrée <maandree@operamail.com>