Bugfixes for OS X
README updated
sed call readability improved