Fix warning when PUSH_REMOTE is not set. Closes: #706917
releasing version 1.1
Call type -p in a more compatable way.