Updating custom fact to support ruby 1.9 'find' behavior

The default behavior of the find method has changed in ruby 1.9 to throw an error if the path searched does not exist. This caused the custom fact to break in Puppet Enterprise.

This PR will ignore a path if it is not a valid directory and allow functionality in ruby 1.8.7 and 1.9.3.