[issue #124] added defensive check before calling opts.includePaths.pop()