Update and Move config to seperate file

i did a small update (path.exists -> fs.exists) and moved the config its own file.

kind regards thehawkes