Fix the case when the subdirectory is not needed

When the installer detects that __SUBDIRECTORY__ is blank, it sets it
as ‘/‘. This patch fixes it.