Solved platform-dependent bug - don't use basename() to strip namespaces in Linux