Don't use popen when it isn't needed.