Update image if is already installed. Add aufs module
Fixed postgresql and env-vars support