Added publish settings + made git version safe
Added debud prints to mongo startup//shutdown to see where is problem in build tool