fix issue on Windows with file separators