Fix dependencies handling.
Fix the "path is not defined" error.