Local and global epidemic outbreaks in populations moving in inhomogeneous environments