Fix check of notebook path