Adds keepTopDir option