Fixed packaging script and getHostIdentifier method