Added support for output folder

The compiler works great but I found myself wanting to have a default output folder that isn't directly where the source file is. I modified the script to add support for output folder, it should work in Linux and Mac as well but it was developed in Wndows.

I figured it might be interesting for you as well :)