Remove module target dirs from the slug