Allow specifying dependencies as array or string