Avoid bashism in extra/generic-init.d/celeryd

The example init script depends on bash for validating pid files when running `/etc/init.d/celeryd status`. Thus, the status command won't work on Ubuntu and other distributions where bash isn't the default `/bin/sh`.

Fixed by using `sed` to accomplish the same thing in a more portable way.