Changed to use public method 'basename_dir' instead of private
method '_basename_dir'.