Move expandArgs to work on windows only