Fixed a small bug in the retry logic for getting the FileSystem