Make source map truly conditional

[Fixes #12]
Merge pull request #14 from weilu/conditional-source-map

Make source map truly conditional