scan-rotate: fix directory