Implement 'cd' and handle pipes on quoted commands