Move remote install script from define to resolve duplicate declaration