Rewrites whole directory, to repair the path screwup