Improve handling of shell symlink in recovery ramdisk

Change-Id: I06351f8ecdfe5b119bbae0d6800258adef844c66