fixed Makefile.common in case TOP is not defined

Change-Id: I652c370ff4e1df7aef9b223d44abedb222cbf993