Updated preinstall npm script with external submodules support.

Signed-off-by: marco.minetti <marco.minetti@novetica.org>