Properly resolve paths relative to the location from which the script is called

This matches the way Browserify resolves paths. Fixes #9.

This breaks existing behavior, but implements what I think is expected behavior. /cc @OscarGodson