Fixed fetch command, added private unix env hooks