Fix getLevels code
Merge pull request #15 from bem/fixPath

Fix getLevels code