Fix gnu coreutils detection for ls