Shortcut Learning in Generalist Robot Policies: The Role of Dataset Diversity and Fragmentation