Prevent "Uninitialized string offset: 0" exception when $paths is an empty string
Remove unused variable $packages
Merge pull request #19 from hacfi/fix_exception

Prevent "Uninitialized string offset: 0" exception when $paths is ""