Fix so the script also runs under Windows for files in subdirectories.

Make sure the slash matches the os; for Windows we need a backslash.

Solution provided by MestreLion.
Changed file extensions for Python scripts to .py; this makes life easier under Windows :)