sh compatible version of the script added