Fixed #1566 Resource path in config file using `./` causes error