Bug fix in returned dep. and code refactoring

Will now return the right path:

Before: 'dart:io'
Now: dart:io

Also changed the interface of the class a little to make it more clear
how to use.