perf record: Fix the profiling of existing pid or whole box