Set the relative root, if it exists, in development and production environments