Fix absolute path requirement.

I do not know why anything in the code would need absolute path for repositories, but this should fix it.

Drawback is that if directory is missing exception is thrown from realpath()