Fix executable detection on windows.
Previously the path separator was not portable ( : vs ; on windows) and executable extensions were ignored.

Solution copied from http://stackoverflow.com/questions/377017/test-if-executable-exists-in-python
Fix permission denied error on windows