fix directory layout in /usr/lib/rerun and file permissions