Updated build scripts to correctly install FactoryRestore.sh script