Add portable build support for batch files