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.
Merge pull request #462 from vaibhav-kaushal/fix_installer

Fix the case when the subdirectory is not needed