Fix dependencies installation and remove the custom spawn function