Tweak to handle different responses to LIST/NLST