correctly splitting window in current path