Qt4Project: Handle special cases for renaming files

Task-number: QTCREATORBUG-9824
Change-Id: I1a237a57332c929844fdc230c96fba397d79d312
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>