[FIX] Sometimes the file extension was not added. [#225 state:fixed assigned:me]