Resolve 'Arguments to path.join must be strings'