Added trailing / to subdirectory variables