Updated pre-install to be more portable