Update error message and fix order of dir creation for deps

For https://github.com/rebar/rebar3/issues/39