Add a new function to get absolute path for a file.