Added better system() error checking