Fix clean to work when API_DIR doesn't exist