getting the basename of yaml file
(#343)