Change dir to current code to support relative config path.