Fix installrecovery() for MTD partitons

Change-Id: I043f20fb7b43c248d12bc6fb8efbd6ef6dd9df95