Allows smart replacement for attr blocks such as {dir}, {name}, {ext}