Added support for file paths without extension