Only ignore target and dist directories at the top level.