Fix directory thumb generation