Added trailing slash to intermediate directory.