prevent error when file has no extension