Added linux support

Use correct messaging directory and binary path on linux.
Also, use OS temp directory to store replacement files instead of storing them in bin directory.