Make buildNativeComponentRootPath() not global in installscripts

Change-Id: I06f946bfc51ade7b1694ada64f3543ed5237e550
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>