Add function to get configuration filename.

It seems that the tilde does not expand to the home directory as
expected. At any rate I assume that the package API os.user.Current()
will return a valid directory for whatever platform this is running on.

Basicaly, much more ideal.
Fix build warnings for filepath not being used.