Detect config file path (.properties/.yml).