Fix ndk-build won't build if makefile has tailing whitespace in LOCAL_PATH

Also add a testcase

See See http://b.android.com/42841

Change-Id: I5284de92cc16bddbba560fe6dcf07d450dd24d12
4 files changed