Cached dependencies install dir

The variable INSTALL_DEPENDENCIES_DIR is now cached and can be passed
from the command line. When the user does not specify a value from the
command line, the behaviour is the same than before.

Fixed typo of variable INSTALL_DEPENDENCIES_DIR .