Found a workaround for the 'arguments to path.joing must be strings' issue.