fix sub-dirs (under public-dir)