Added option to configure nginx workers and option to automatically determine root directory