Corrected global namespace detection to use directory separator