Slightly saner handling of Node. Use an index.js for source loading and smarter logic for the built version.