Added a helper function for displaying if the given directory exists.

This can be used in admin setting forms and else where to indicate if the given
directory exists.

Was going to use this for determining settings for tesseract but as it turns out I can do this via a parameter to the executable. 

Some one might find it useful though.