fix(preprocess): set correct extension for the preprocessed path

Closes #843