Fix parsing logic around resave option

closes #44