Added better debug messages to file name plugin