initrd.scripts: move modules functions to 00-modules.sh
initrd.scripts: drop unused function: uppercase()
initrd.scripts: refactor findmediamount and rename to media_find()