Fix using {filename} on Windows