Correct executable checking on windows

fixes #27