unify postinst doc directory symlink scripts via abstraction