__dirname isn't supported in scheduled tasks