variable expansion does not work in cache directories