properly escape paths

Fixes https://github.com/rebar/rebar3/issues/27