Fixed issues with sh in linux