Remove sudo from commands where it was not needed
Fix for crashes when stopping recording