Fixing bugs with custom tasks, supporting Windows, and fixing data sanitization bug

Fixing a bug where tasks named QueueMyExampleTask.php wouldn't be recognized.
Also adding support for Windows by checking the PHP_OS
Also fixed issue where if the job failed the data was not properly sanitized