Clean up _getFileExtension() method and fix all its callers

Fixes [4574](https://github.com/adobe/brackets/issues/4575)

I've took into account comments on [this](https://github.com/adobe/brackets/pull/4651) pull request and fixed it.