improved error message if main directory is not working directory for notes and cite functions