Fix #1552 by adding a script resource mapping

Fixes #1552