installd: replace get_location_from_path with Basename

Bug: 161470356
Test: atest frameworks/native/cmds/installd/tests
Test: cmd package compile -m speed -f com.android.egg
Change-Id: I3b7ebf04eadf2699ce5e67234064639df0f0020c
1 file changed