Add more working files, directories to .gitignore
Fix undefined variable: RLIMIT_NOFILE

It was not imported from resource, it was also not used correctly.
Fix a relative path bug