Use awk instead of cut in pspid() function

This is more fault-tolerant in case of leading spaces (Linux)