move LOCAL_PATH under check for VENDOR/PLATFORM

Change-Id: I62ab30deea1036c47702f9bcd5c67fd8565bef77