function xcopy () { tar cvf - -C $1 $1/* | tar xvf - -C $2; }
function checkdns () { ping $( grep nameserver /etc/resolv.conf | awk '{print $2}' | head -1); }
-if [[ $(/usr/bin/which -s pidof) -eq 0 ]]; then
+if [[ $(which pidof &> /dev/null; echo $?) -eq 1 ]]; then
function pidof () { ps -e -o pid,comm | grep "$1" | awk '{print $1}'; }
fi