front: Fix autohold slide-off method.
front: Eliminate superfluous conditional.

if( index != prevIndex ) is already tested in an outer loop.
Fix issue where controller/touchscreen profiles were created as
directories instead of files.
(cherry picked from commit e7396893ac02fa8b59e29cfc25a902d8453a3588)