If output-to is :print if compiler redirects output. In that case set sourceMappingURL to source-map to avoid trying to open file :print.

Also update source map to use //# (new format) instead of //@ (old format).