Range expansion through fragmented landscapes under a variable climate