Fixed issues as per pull request conversation

As per Pull Request Conversation https://github.com/js-platform/filer/pull/152