Implement home dir test.
Create home dir on startup.
Fix script variables.