[bash] get_base_name: fix for path that contains dot