adding support for indirect files on windows