Error: ./diagnostics/ is not a valid directory.
Check the $base_dir variable.