Improvements

* Adding safe_source function to avoid error when including unexisting files
* Detecting repository path