Fix some issues when working with other gulp plugins

There were some issues when using this plugin with other plugins. This pull request fixes them, taking some inspiration from [gulp-less](https://github.com/plus3network/gulp-less).