fix filename and version detection