Slight portability improvement

Probably still won’t run on Windows tho.