account for .cmd scripts on windows