Update functions.php

Support windows