Cleaned up some Popen commands to work in XP/win32