Fixed two first issues: Problem running on unix like OSes, and problem
with snapshot repository.