misc, libs and php dirs removed