actually resolves #1 since before I forgot to add pathModule.join in a few places.