resolve the absolute path to file if the local file name is passed in