Open ssms only if files are nonempty