Added windows support with autoload dir