make analysis_dir variable to be @directory