display an error when not run from the project root

fix #19