Fix calls to system()