wrong dir used for cache tables

corrected section that allowed cache tables to get the wrong parameter
directory.