
We have seen instances where type -p (s)testr seems to return with a leading blank line which confuses ansible later when trying to use the first line of output as the path to (s)testr. Address this by chomping with grep -v ^$. Additionally use type -P instead of -p to ensure we always get a path even when the command may be an alias or builtin. Change-Id: Ibffe1e1499eca18ef5dc3904fe222a55242b827d