Automatically scan folders recursively and track dependences upstream

Fixed so now it scans folders recursively …
Added the ability to track dependences so when one changes its parents will get generated too