added shareddirectory checker to postinst