fixed bug in wrap when using sudo...  cant assume bash -c for everything because sudo is limited to command