Resolve script path in a more compatible way.