Better method of determining absolute paths