make clipper work on all os's and output stdout and stderr to files