Fix preview for subdirectory installs