handle relative paths in platform configs correctly