better handling for captureDirectory property

Handles situation where user sets this property to nil.