Check if the the dir has already been defined

This helps it co-exist with other modules that might already have defined this directory.