fixed config file to work in any directory and filename given.