Fixed installation in local directories problem