Changing nginx template to use try_files

`try_files` is the preferred method for Nginx configs so offering up this PR to change out the `if` blocks for `try_files` instead.