Replace __dirnames with dots in require statements.