Move installing dependencies into the "before_install" stage.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>