Apply patches while build/envsetup.sh and fix rilpatch's path

Signed-off-by: Keven Liu <airk908@gmail.com>