Fix calling length on nil object

Instead of just checking the length, check if the object is nil first, and then check and see if the string is emtpy
fix placing seed file into non-existent dir
Merge branch 'patch-1' of github.com:cpuguy83/openldap