Improved repo.py to work with different folder and project configurations