Remove every tabulation and trailing space

s/\t/    /g;s/ *$//
Move the include after basic debug defines
Use recent g_lock instead of deprecated one
Remove hardcoded MAX_STORAGE_AREA=4
Remove tmp variable in check_files
Fix parse_path indentation