Changed parameter input in getcond

and corrected wrong output folder handling