Added .gitignore
Use portable_rename to support Windows
Handle backslash as directory separator on Windows

[talex5: moved fix to config template]