remove unnecessary localhost directory