Fixed bug whereby directory entries were missing a trailing / character in the emitted AMP file