Added support for relative paths in getNames(), getType(), getPath().

Change-Id: Ic2a28219e980472dd1c861b15434011303c1f261