fixing #54

- changed post-build script run condition