Revert "Fix: manpages were not installed when running an out-of-source build"

This reverts commit 9395a4d112722c063868b481664134b7ac18c9b4.
Bug #1191

Added missing close().
Merge branch '2.2.0' of tasktools.org:task into 2.2.0
Merge branch '2.2.0' of tasktools.org:task into 2.2.0
Bug #1191

+ The 'execute' command should not be considered a 'write' command.