gets dependencies in order for gem executable