Add support for CM's bootable/recovery

Credits to Yamil, just edited his previous commit d4e4eb213706e0f05e82bf32857e0d6a1e6af572
a tiny bit to make it universal for all legacy devices

Change-Id: I68721da40369c9f396b84070fa03f3fe5fdf0a5b
Merge branch 'kitkat' of github.com:AOSPA-legacy/android_build into kk4.4