Improve how to get an absolute path