Change joinPath() to joinFile()