Removed sed -r option dependency