erlc: store info file in base_dir

* make it a universal info file
* store it as <base_dir>/.rebarinfo
Reuse rebar_utils:base_dir/1 in rebar_deps and rebar_xref