Make contrib modules' installation scripts more secure