improve path validation in Elixir.make