Fix snapshot path generation