Fixed an issue when a directory does not have any scripts to document