Add check for current directory and namespace for child class