Added JSON line number output for errors.
Fixed generation to non-normalized destination paths.