move the inline string out of the way
rename config to filename

It's a better name for it I think, but yeah, nitpicking.
rip apart two lines

and rename config to config_file.
use XDG dirs

XDG rocks! Everyone should use it!
remove the line that cd-s to a the config-file dir

I convinced myself that it is not needed. You will only call configure
with a command line argument, and the shell expands paths for your
already.