Validates the namespace and loads file from basepath