Small issues to make ScriptRepositoryTest to pass in Windows

re #6175