In log4j the config file accept paths like /tmp/${PROCESS} or /tmp/${ user.home} - basically any predefined variable (using -D or standard java define) can be used. Not sure if this exists for JCS, but would be a nice feature.
If it does not exist, maybe we can add this to the TODO list.