Fix a bug when using --watch with --sourcemap.

See #584