Optimized -f/-p calls in files() to not repeat the variable.