Added support for single file extensions