Added initial support for --collect-dependencies