fix check_path in nginx module