Use transform directly rather than shelling out

The shell command does a lot more than just desugaring; this makes the transform much, much simpler and saves you extra processes.