Add (post)install hooks. Add  expansion to dir