Added the ability to tweak the run and database script. Added Gentoo support.