Fix for https://github.com/gfranko/amdclean/issues/65 (dev branch)