Removing 'server' from directory with platform independence