Add caching to `bundler.sh`

Results of calls to load assets are cached and if the path exists,
the actual function is not called again.