Check directory where execute perldoc is existed

Because 'perldoc' is failed, if buffer directory is not existed.