Fixed bug in filesystem wrapper where roles weren't correctly recognized