Reinstated path.join (added require statement for path module, removed conflicting path variable)