Add path checking at multi pkg install APIs