Fix template reloading on Windows

Fix for issue #92