fix system() yet again