path+unity: move os checks and is_avail to path

This allows anything that needs to check the path to have instant access
to these useful functions, which have a lot to do with the path