#212: check if file exists updated to support embedded recourses.