function do determine weather script is executed on android