Fix cache file option

The user provided cache file option should always have precedence over the
default cache file path.

Just pulled the ctx->cache_file check into a separate if, the rest is whitespace change.