corrected postinst to check for existance of directories