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