Update format_source function to match all possible source types

With some types of dependency sources in rebar.config file list-deps command will crashes with function clause.
Added another variant of format_source to match missed source types.