fix : path expand on init git repository

to assure the path will always be expanded also in the test.