Update Attachment.php

Updated getting the config to work with flattened config setup in L5.