Output file is compiled to the src folder on Windows

Since `filename` contains the absolute path to the input file, `@subfolder` never gets replaced on Windows.