Update index.js

Working with relative paths and requiring files when -c is specified.