Removal of extensions
Check is file exists