Pass the product to PathTools functions for proper encapsulation.

Change-Id: Idcfbb37830e56b09af56d087b710b7e64fb66c0c
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>