(Blackberry) S_ISDIR would be broken if left undefined on Blackberry -
figure out what the deal is here