Fixed bad line endings
Check for _checkpermission, so the command runs on servers without it