Fix travis operations; use subshells and cd.