Shell detection is more reliable