Added bug fix - now constructs full path to messages directory.