fixed possible bug when build notes path is empty or null