I use the plugins_url function to get paths from file into /mu-plugins/.
It work well when the website has no custom domain but with custom domains it just return weirdly cut string. Usualy just the last letter.
For example calling
will return string(1) "s"