add util function to get current file name.