Adding an utility function to get the absolute path of a file