petea - added getConfig function
petea - used path.resolve in order to absolutify paths