Using better way of determining absolute path of files