Fixed windows 8 permissions check.

Windows 8 deprecated 'at' command.
see http://stackoverflow.com/a/11995662