Ensure we tag the destination when compiling through mix

Closes #2533
Add version checks and proper error formatting to escripts. Closes #2709

Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
Remove warnings from the test suite