core: ensure path is picked up if a string

- fix undefined string paths

Impact: medium