bypass POSIX if os is windows