Is the check for Windows really needed? I think it would be better to choose the full path in the preferences page dialog and use it here  "as is".