avoid batch files

@rcruz @kflores772 here's a draft which at least seems to work on OS X (I'll test w/ Windows tomorrow).