Avoid using deprecated API on Brackets 32+ (but remain compatible with 31-
as well)