fixed file version handling with -d