Fix for https://github.com/gfranko/amdclean/issues/65

Tests are passing. It would be great if you'll add tests for my case :)