diff --git a/README.md b/README.md
index 38c282c..689758e 100644
--- a/README.md
+++ b/README.md
@@ -4,12 +4,12 @@ privacyidea-checkotp
 Shell script implementing the [PrivacyIDEA](http://www.privacyidea.org) OTP (One
 Time Password) check to integrate with [FreeRadius](http://www.freeradius.org)
 in environments where the FreeRadius Perl plugin is not available to use the
-standard check script (e.g. on OS X 10.9).
+standard check script (e.g. on OS X).
 
-**Version 1.0**, latest version, documentation and bugtracker available on my
+**Version 1.0a**, latest version, documentation and bugtracker available on my
 [GitLab instance](https://gitlab.lindenaar.net/scripts/privacyidea-checkotp)
 
-Copyright (c) 2015 Frederik Lindenaar. free for distribution under the GNU
+Copyright (c) 2015 - 2016 Frederik Lindenaar. free for distribution under the GNU
 License, see [below](#license)
 
 
diff --git a/privacyidea-checkotp b/privacyidea-checkotp
old mode 100755
new mode 100644
index b9928c2..6dae606
--- a/privacyidea-checkotp
+++ b/privacyidea-checkotp
@@ -49,7 +49,7 @@ fi
 otpresult=`/usr/bin/curl -s "$URL" --data-urlencode "user=$LOGIN" --data-urlencode "pass=$PASSWORD" --data-urlencode "client=$NAS"`
 
 # Extract the status of the request from the returned JSON
-otpstatus=`echo $otpresult | sed 's/^{.*"result": { "status": true, "value": \(.*\) },.*}/\1/'`
+otpstatus=`echo $otpresult | sed 's/^{.*"result": *{ *"status": *true, *"value": *\(.*\) *},.*}/\1/'`
 
 if [ "$otpstatus" = "true" ]; then 
 #  echo $LOGIN did authenticate $otpresult