Got directory index generation working