Add ignore-ext option & fix relative path issues

1. --ignore-ext to ignore some unuseful files (like image, office
documents, etc)
2. if the file isn't existed in current working path, it'll try changing
to relative path of script file
3. add file2list() function, and remove dot from extensions file