Use pgrep instead of pidof to retrieve PID of the main pipewire service
With latest versions of pipewire, a new service "pipewire -c filter-chain.conf" is running. Because of this new service, pidof returns two PIDs which confuses the following ps call. As we only want the PID of the main pipewire service, we use pgrep with the regexp anchor "$".