Enable setting of temporary files path used while indexing code

Change-Id: I5c97a4877f8b5b13e520122a2c70fb1246a40cbc
Adding conditional compilation option to disable the ranking database.