changed app_file_name var calculation