Modified to support spaces on windows and windows binary