No need to escape Regexp with %r{}.
Move icon path detection into own class.
Merge pull request #22 from splattael/refactor-pathes

Move icon path detection into own classes and test it.