Fix clean command wrong permission fetching