Update batchfile script generation

* Implement auto detection of curl/wget
* Allow script to be run from anywhere