Fixed custom-file to have expanded path.

Fixes the problem of safe themes not saved to custom file.