fix path bug in specwriter