Update a logic to find the "root"

- Remove .git lookup and packages lookup
- As a fallback use the project folder

#663