Use system instead popen