Do not popup console window on Windows
Replace popen with spawn. Close buffer once a file is selected.