Prevent action files being changed to .desktop when they are renamed

Fixes #219