Fixes #1375 - Check for empty filenames.

Starting sbt in root isn't a great idea, but it shouldn't break.

Review by @eed3si9n