FT-548 fix dirty upgrade build on osx problem