added conditional ls for mac/linux