Fixed postbuild script

In reference to issue #243