Check if the source directory (S) exists