resolve script path (#187).