JS: -outputdir not correctly supported
The JS backend doesn't properly handle -outputdir flag.
For example the following command fails:
ghc -outputdir build app/Main.hs
That's again because of the way we distinguish .o built from Haskell modules vs .o built from raw JS files. We use a filepath comparison that doesn't work when -outputdir is used.
Patch incoming.