Fix cf_shader_directory crashing on files with no extension (#537)