Factor out ghcjs's libdir better.
Fix buildLocalCabalWithArgs.