Print an help message only if it's given
Pushed down list_wd as function argument
main... seriously?
Removing fd and list_wd as global variables
Removing unuseful printf