[BUG] Fixed cross platform support

Fixed for auto writing and the os window opening in nuke