Fix sc when files with no extension