move read_dict from fileutils to the bash module and drop compat imports

At some point this should be merged/removed in favor of the
read_bash_dict method.