Change directory to keep references relative for bundling