Fixed some regexps, and nested folders in public folder not being copied correctly