- add utility function to create config directory if it doesn't exist - handle home directory expansion and error conditions