Gitweb: fix detection of status when a file is moved

When files are modified, deleted and moved, in this order, only the modified
one is detected as deleted.

The code was tested with Git 1.8.3.1.