Revert "Revert to "<" for passing input file"

This reverts commit dee0e68eea5eb26c492013eb8c5d53fc9ab3782f.
Revert "Execute shell command synchronously using shelljs"

This reverts commit b038ebde2c1851d2bff99977f02d7b6dcb73d057.