improve postinstall with variables for versions and check if run within vagrant only