Handle Rails apps running on relative root