Added DEPSDIR auto-detection