fixed rmdir bug in install script