Add profile directory handling to packaging