using system instead of popen for travis