Fixes line-endings issue
Fixed bugs in batch and shell-scripts