Don't hook core form if not inside a directory