Fix bug with caching and comma separated targets

When trying the graphite.rb script with -t “target1,target2” noticed that only the 1st target was taken into consideration, investigation revealed the script internal caching was not working as one would expect when it comes to comma separated target lists; this patch fixes it.