Added warning message in case sketch contains invalid file name. Fixes #1390