Clear directory for json builds as well