Fix build issues where npm build command didn't properly copy in sh env
This issue led to breaks in how the containers were built in CI, as our build env uses 'sh' which has different copy behaviour which isn't compatible. The added commands should cover both bash and sh environments.