Throw error on no project directory

Just for fun : )