Attempt to solve the isssues of UnitTest in Win

Wrapping exceptions to try to get clear messages of failure at jenkins.

Using relative path for the temporary folder.

re #6175
Enable ScriptRepositoryTest

re #6175
Merge branch 'feature/6175_script_repo' into develop