Added check which may help when using on linux.