fixes test for modgui (-d instead of -f)