Move hostname setting from vagrant into common

This closes #19.