Changed the install method of xmds and fixed an issue with the runScript method