Added appropriate OS-specific testing in testUserData of environs/cloudinit_test.go