Return immediately.
Apply optimization and improve readability.
Improve the awk code for adding a directory.
Simplify exit code check and always call "rm -f $tempfile".

Remove wrapping with env, because aliases don't apply anyway.
Apply style changes.
Increase the number of lines listed on stdout to 20.
Regenerate.