throwing an exception if dots are used for nodejs require paths