Fix application path detection, happens on image update