typo fix
Use sh for better compatibility
Always use [[ instead of [
Use basename in help
Some improvements