Fixed bug with seq dir and index being created in the wrong place