Update whatisdoing.sh

Improved getting pid