keep old method, add new one as fallback if pidof is not available