fixed #33 where make would return error if 'doc' directory isn't present

The list of files to include in the dist package was always being built,
before the target that verifies if the directory structure is complete.
Added a target so that the fileList is created only after checking that
all directories actually exist.