Fixed build-to-window

Build-to-window commands should now work as expected. Thanks to
quarnster in the Sublime Forum for the assistance.