Added some hacks to make some os exists test a bit faster. Needs more ellegant solution