Fix directory references in staging script.