Fixing bugs with custom tasks and adding Windows support

Fixing a bug where tasks named QueueMyExampleTask.php wouldn't be recognized. Also adding support for Windows by checking the PHP_OS