Properly escape quotes in sudo command