The paths changed from styles/ to themes/ already in 14.x - so this backport makes this script usable in 15.x LTS too; would that make sense?
styles/
themes/
(cherry picked from commit ad99180b)
(cherry picked from commit b2ef71cd)