Add -path and -wpath options to q2wmap, which allow you to specify alternate read / write paths. This way you can compile Quake2 maps with q2wmap quite easily.